<template>
  <div id="app">
    <el-container>
      <el-header style="height:2em;">
          <player></player>
      </el-header>
      <el-main>
      <!-- <transition name="el-fade-in-linear"> -->
        <!-- <el-collapse-transition> -->
          <transition name="fade">
        <keep-alive>
              <router-view/>
              <!-- </el-collapse-transition> -->
        </keep-alive>
          </transition>
      </el-main>
      <el-footer class="Appfooter">
        <router-link class="AppfooterLink" active-class="activePage" :to="{name:'HelloWorld'}">认领任务条</router-link>
        <router-link class="AppfooterLink" active-class="activePage" :to="{name:'fight'}">全年运营评价提升PK赛</router-link>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
import Player from "./components/player.vue";
export default {
  name: "App",
  components: {
    player: Player
  }
};
</script>

<style lang="less">
* {
  padding: 0;
  margin: 0;
  font-weight: bold;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
body,
html {
  height: 100%;
}
#app {
  min-height: 100%;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  background-image: url(assets/img/bg.jpg);
  background-size: cover;
  background-position: center;
  .fade-enter-active {
    transition: opacity 0.8s;
  }
  .fade-enter,
  .fade-leave-to {
    opacity: 0;
  }
  .fade-leave-to {
    display: none;
  }
  // .fade-leave-active{

  // }
  .Appfooter {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.425);
    height: 30px;
    display: flex;
    justify-content: center;
    .AppfooterLink {
      padding-left: 3rem;
      padding-right: 3rem;
      display: flex;
      align-items: center;
      color: #dbdbdb;
      text-decoration: none;
      &.activePage {
        background-color: rgba(0, 0, 0, 0.575);
        line-height: 100%;
      }
    }
  }
}
.card-color {
  background-color: rgba(68, 15, 8, 0.635) !important;
  border: none !important;
  color: #fff !important;
  .el-card__header{
    border-bottom:2px solid #e9331e; 
  }
}
.checkbox-color {
  background-color: rgba(179, 8, 8, 0.445) !important;
  transition: all 0.5s;
  border: none !important;
  color: #ffffff !important;
  &.is-checked {
    background-color: rgb(185, 87, 87) !important;
  }
}
.tasks {
  .el-table th,
  .el-table tr {
    color: #fff;
    background-color: rgba(179, 8, 8, 0.055) !important;
    text-align: center;
    // border-bottom-color:red;
    td {
      border-bottom: none;
    }
  }
  .jjj {
    background: rgba(0, 0, 0, 0) !important;
  }
  .el-table--enable-row-hover .el-table__body tr:hover > td {
    background-color: rgba(250, 232, 232, 0.295) !important;
  }
  tr.current-row > td {
    background-color: rgba(250, 232, 232, 0.5) !important;
  }
}
</style>
